package cease.vo;

import java.util.List;

import net.sf.json.JSONObject;
import cease.json.JSONUtil;

/**
 * @author dhf
 */
public class Butter {
    // cursor的结构"$butterId:$updateTime"
    private String cursor;

    private String id;

    private String inReplyToButterId;

    // butter api返回值的变量名的确就是inReplyToSrennName
    private String inReplyToSreenName;

    private String inReplyToNickName;

    private String summary;

    private String createdTime;

    private String userId;

    private UserInfo user;

    private List<Butter> comments;

    private int retweetCount;

    private boolean needFold;

    private List<UserInfo> retweeted_users;

    private Boolean isRetweeted;

    private Boolean isFavorited;

    private int totalCommentsCount;

    private String source;

    private String text;

    public String getCursor() {
        return cursor;
    }

    public void setCursor(String cursor) {
        this.cursor = cursor;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getInReplyToButterId() {
        return inReplyToButterId;
    }

    public void setInReplyToButterId(String inReplyToButterId) {
        this.inReplyToButterId = inReplyToButterId;
    }

    public String getInReplyToSreenName() {
        return inReplyToSreenName;
    }

    public void setInReplyToSreenName(String inReplyToSreenName) {
        this.inReplyToSreenName = inReplyToSreenName;
    }

    public String getInReplyToNickName() {
        return inReplyToNickName;
    }

    public void setInReplyToNickName(String inReplyToNickName) {
        this.inReplyToNickName = inReplyToNickName;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public UserInfo getUser() {
        return user;
    }

    public void setUser(UserInfo user) {
        this.user = user;
    }

    public List<Butter> getComments() {
        return comments;
    }

    public void setComments(List<Butter> comments) {
        this.comments = comments;
    }

    public int getRetweetCount() {
        return retweetCount;
    }

    public void setRetweetCount(int retweetCount) {
        this.retweetCount = retweetCount;
    }

    public boolean isNeedFold() {
        return needFold;
    }

    public void setNeedFold(boolean needFold) {
        this.needFold = needFold;
    }

    public List<UserInfo> getRetweeted_users() {
        return retweeted_users;
    }

    public void setRetweeted_users(List<UserInfo> retweetedUsers) {
        retweeted_users = retweetedUsers;
    }

    public Boolean getIsRetweeted() {
        return isRetweeted;
    }

    public void setIsRetweeted(Boolean isRetweeted) {
        this.isRetweeted = isRetweeted;
    }

    public Boolean getIsFavorited() {
        return isFavorited;
    }

    public void setIsFavorited(Boolean isFavorited) {
        this.isFavorited = isFavorited;
    }

    public int getTotalCommentsCount() {
        return totalCommentsCount;
    }

    public void setTotalCommentsCount(int totalCommentsCount) {
        this.totalCommentsCount = totalCommentsCount;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    @Override
    public String toString() {
        return JSONObject.fromObject(this, JSONUtil.getJsonConfig()).toString();
    }
}
